<?php

namespace App\Http\Requests;



class BindingBankCardRequest extends Request
{

    /**
     * Determine if the user is authorized to make this request.
     *
     * @return bool
     */
    public function authorize()
    {
        return true;
//        return captcha_check($this->input('captcha'));
    }

    /**
     * Get the validation rules that apply to the request.
     *
     * @return array
     */
    public function rules()
    {
        return [
            'province' => 'required',
            'city' => 'required',
            'bank_account_no' => 'required',
        ];
    }

    public function attributes()
    {
        return [
            'province' => '省份',
            'city' => '城市',
            'bank_account_no' => '银行卡号',
        ];
    }
}